package lib_model.Cart;

import lib_model.Product.Products;


/**
 * @author SHINGUYENXUAN
 * 
 */
public class ItemCart {
	public int id;
	public Products product;
	public int quantity;

	/**
	 * @param quantity
	 */
	public void ChangeQuantity(int quantity) {
		this.quantity = quantity;
	}

	/**
	 * @return
	 */
	public double getTotalPrice() {
		return (this.quantity * this.product.price);
	}

	/**
	 * @param id
	 * @return
	 */
	public boolean CheckID(int id) {
		if (this.id == (id))
			return true;
		return false;
	}
}

